package logic;

import java.io.Serializable;

public class Member extends Object implements Serializable{
	
	public final static int VALID_MEMBERCARD = 1;			
	public final static int FROZEN_MEMBERCARD = 2;			
	public final static int GRADUATED_MEMBERCARD = 3;		

	public final static int SYSTEM_USER_PRIVILIGE = 0;
	public final static int MANAGER_PRIVILIGE = 1;
	public final static int LIBRARIAN_PRIVILIGE = 100;
	public final static int MEMBER_PRIVILIGE = 1000;
	
	private static final long serialVersionUID = 1L;
	private int UID;
	private String name;
	private String dob;
	private String phone;
	private String mail;
	private String address;
	private int status;
	
	/**
	 * This is the constructor for Member class
	 * @param UID - member's UID
	 * @param name - member's name
	 * @param dob - member's date of birth
	 * @param phone - member's phone number
	 * @param mail - member's email address
	 * @param address - member's address
	 */
	public Member(int UID,String name, String dob, String phone, String mail, String address,int status) {
		
		this.UID = UID;
		this.name = name;
		this.dob = dob;
		this.phone = phone;
		this.mail = mail;
		this.address = address;
		this.status = status;
	}
	
	//TODO verify if JavaDoc needed for each specific getter
	
	public int getUID(){return this.UID;}
	public String getName(){return this.name;}
	public String getDOB(){return this.dob;}
	public String getPhone(){return this.phone;}
	public String getMail(){return this.mail;}
	public String getAddress(){return this.address;}
	public int getStatus(){return this.status;}
	public long getserialVersionUID(){return serialVersionUID;}
}
